package com.ct.ecommerce.api.uc.client;

import com.ct.ecommerce.api.uc.dto.AccountDTO;
import java.math.BigDecimal;

/**
 * @author changtong
 * @since 2021/5/26
 */
public interface AccountService{


    /**
     * 获取用户账户信息
     * @param userId
     * @return
     */
    AccountDTO findUserAccount(Long userId);

    /**
     * 扣减账户金额
     * @param userId
     * @param amount
     */
    void deductAccountAmount(Long userId, BigDecimal amount);
}
